import { ProductResolver } from './product.resolver';
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';

import { Product } from './models/product.entity';
import { ProductService } from './product.service';
import { CardRecordService } from '../cardRecord/cardRecord.service';
import { CardRecord } from '../cardRecord/models/cardRecord.entity';

@Module({
  imports: [TypeOrmModule.forFeature([Product, CardRecord])],
  providers: [ProductService, ProductResolver, CardRecordService],
  exports: [ProductService],
})
export class ProductModule {}
